package cn.com.aiton.common.utils;

import cn.com.aiton.common.constant.Gbt209992007;

public class AitonExtendTscAndPscUtils {


    /**
     * 切换到路段式的一次过街
     *
     * @param greenTime
     * @return
     */
    public static  byte[] switchOnePsc(int greenTime) {
        byte[] psc1greentime = Gbt209992007.SET_PSC_1_GREEN_TIME;
        psc1greentime[5] = (byte) greenTime;

        return psc1greentime;

    }

    /**
     * 切换到路段式二次行人过街
     *
     * @param greenTime2
     * @return
     */
    public  static byte[] switchTwoPsc( int greenTime2) {

        byte[] psc2greentime = Gbt209992007.SET_PSC_2_GREEN_TIME;
        psc2greentime[5] = (byte) greenTime2;
        return psc2greentime;

    }

    /**
     * 切换到路口式交通信号控制
     *
     * @return
     */
    public  static byte[] switchTsc() {
        return Gbt209992007.SET_TSC;
    }
}
